package adapter;

public class Punct {
	protected double x;
	protected double y;

	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}

	public Punct(double x, double y) {
		super();
		this.x = x;
		this.y = y;
	}
	
	public double distanta(Punct a)	{
		double nr=(this.x-a.x)*(this.x-a.x)+(this.y-a.y)*(this.y-a.y);
		return Math.sqrt(nr);
	}
}
